package com.ml.service.impl;

import com.ml.dao.BaseDao;
import com.ml.model.MLlog;
import com.ml.service.MLlogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Transactional
@Service()
public class MLlogServiceImpl implements MLlogService {

    @Autowired
    private BaseDao<MLlog> basedao;

    @Override
    public void save(MLlog model) {
        basedao.save(model);
    }

    @Override
    public void update(MLlog model) {
        basedao.update(model);
    }

    @Override
    public void delete(String id) {
        basedao.delete(getByID(id));
    }

    @Override
    public MLlog getByID(String id) {
        return basedao.get(MLlog.class,id);
    }
}
